package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the OUT_MEDICAL_PROJECT_CHARGE_DET database table.
 * 
 */
@Entity
@Table(name="OUT_MEDICAL_PROJECT_CHARGE_DET")
@NamedQuery(name="OutMedicalProjectChargeDet.findAll", query="SELECT o FROM OutMedicalProjectChargeDet o")
public class OutMedicalProjectChargeDet implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="OUT_PROJECT_CHARGE_DETAIL_ID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="OUT_PROJECT_CHARGE_DETAIL_ID", sequenceName="SEQ_1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="OUT_PROJECT_CHARGE_DETAIL_ID")
	private long outProjectChargeDetailId;

	private BigDecimal chargecode;

	@Column(name="MEDICAL_PROJECT_PRICE")
	private BigDecimal medicalProjectPrice;

	@Column(name="OUT_PROJECT_NAME")
	private String outProjectName;

	@Column(name="OUT_PROJECT_TYPE")
	private String outProjectType;

	@Column(name="PROJECT_NUM")
	private BigDecimal projectNum;

	@Column(name="PROJECT_SUBTOTAL")
	private BigDecimal projectSubtotal;

	//bi-directional many-to-one association to HospWorkPatientErx
	@ManyToOne
	@JoinColumn(name="PRESCRIPTIONNUM")
	private HospWorkPatientErx hospWorkPatientErx;

	public OutMedicalProjectChargeDet() {
	}

	public long getOutProjectChargeDetailId() {
		return this.outProjectChargeDetailId;
	}

	public void setOutProjectChargeDetailId(long outProjectChargeDetailId) {
		this.outProjectChargeDetailId = outProjectChargeDetailId;
	}

	public BigDecimal getChargecode() {
		return this.chargecode;
	}

	public void setChargecode(BigDecimal chargecode) {
		this.chargecode = chargecode;
	}

	public BigDecimal getMedicalProjectPrice() {
		return this.medicalProjectPrice;
	}

	public void setMedicalProjectPrice(BigDecimal medicalProjectPrice) {
		this.medicalProjectPrice = medicalProjectPrice;
	}

	public String getOutProjectName() {
		return this.outProjectName;
	}

	public void setOutProjectName(String outProjectName) {
		this.outProjectName = outProjectName;
	}

	public String getOutProjectType() {
		return this.outProjectType;
	}

	public void setOutProjectType(String outProjectType) {
		this.outProjectType = outProjectType;
	}

	public BigDecimal getProjectNum() {
		return this.projectNum;
	}

	public void setProjectNum(BigDecimal projectNum) {
		this.projectNum = projectNum;
	}

	public BigDecimal getProjectSubtotal() {
		return this.projectSubtotal;
	}

	public void setProjectSubtotal(BigDecimal projectSubtotal) {
		this.projectSubtotal = projectSubtotal;
	}

	public HospWorkPatientErx getHospWorkPatientErx() {
		return this.hospWorkPatientErx;
	}

	public void setHospWorkPatientErx(HospWorkPatientErx hospWorkPatientErx) {
		this.hospWorkPatientErx = hospWorkPatientErx;
	}

}